package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Set;


/**
 * 工厂对象 查询条件类
 *
 * @author ruoyi
 * @date 2021-08-24
 */

@Data
@ToString
@TableName("fm_factory")
public class FactoryQuery {

    @WhereType(filed = "id")
    private Long id;

    @WhereType(filed = "code", type = WhereTypeEnum.LIKE)
    private String code;

    @WhereType(filed = "name", type = WhereTypeEnum.LIKE)
    private String name;

    @WhereType(filed = "type")
    private String type;

    @WhereType(filed = "parent_id")
    private Long parentId;

    @WhereType(filed = "parent_id", type = WhereTypeEnum.NULL)
    private Boolean parentIdIsnull;

    @WhereType(filed = "top_id")
    private Long topId;

    @WhereType(filed = "charge_user_id")
    private Long chargeUserId;

    @WhereType(filed = "sort", sort = true, sortType = WhereTypeEnum.ASC)
    private Integer sort;

    @WhereType(filed = "is_disabled")
    private Boolean isDisabled;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
